<?php
namespace Api\Controller;
use Think\Controller;
class ActivityController extends Controller {
   public function activitylist(){
        $activityModel=M('activity');
        $data=$activityModel->order('aid')->select();
        echo json_encode($data);
    }
    public function activitydetail(){
    	$id=$_GET['aid'];
        $activityModel=M('activity');
        $data=$activityModel->where("aid='$id'")->select();
        echo json_encode($data);
    }
}